#include "./app.h"
#include "./ui/window/app_win.h"
#include "./utils/crypto.h"
#include "./utils/system.h"
#include <QDebug>
#include <QMessageBox>


int main(int argc, char *argv[]) {
    App app(argc, argv);
    AppWin app_win;
    app_win.show();

    const uint8_t key[16] = {0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56,
                             0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56};
    const uint8_t src[16] = {0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12,
                             0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12};
    std::string v = utils::encrypt_aes_base64(key, src, 16);
    qDebug() << QString::fromStdString(v);

    QMessageBox::about(nullptr, "MAC",
                       QString::fromStdString(utils::get_mac_address()));

    return app.exec();
}
